package com.webboard
import com.authen.User

class Reply {
    static searchable = true              // <-- Make Comments searchable
    String username
    String text
    Date replyDate
    static belongsTo = [post:Post,user:User]
    //Reply Id
    int id_replyOfPost
    String ipAddress_client

    static constraints = {
        post(nullable:true)
        user(nullable:true)
        username(blank:false)
        text(blank:false,minSize:10)
    }
}
